/*
 * CompositeException.cpp
 *
 *  Created on: Dec 14, 2010
 *      Author: dhovemey
 */

#include "util/CompositeException.h"

CompositeException::CompositeException()
	: Exception(L"Multiple errors")
{
}

CompositeException::~CompositeException()
{
	for (ExceptionList::iterator i = m_exceptionList.begin(); i != m_exceptionList.end(); i++) {
		delete *i;
	}
}

void CompositeException::addAndAdopt(Exception *ex)
{
	m_exceptionList.push_back(ex);
}
